<!DOCTYPE html>
<html>
    <title>

    </title>
    <head>

    </head>

    <body>
        <div id="div1">div1</div>
        <div name="div2">div2</div>
        <div class="div3">div3</div>
        <div name=div4"">div4</div>
    </body>
    <script>
         var divid  =document.getElementById("div1");
         console.log(divid);
            var divName = document.getElementsByName("div2");
            var divTag = document.getElementsByTagName("div");
            console.log(divTag);
            console.log(divName);
            function createEle(){
                var divTese = document.createElement("div");
               divTese.className= "";
               divTese.id = "div100";
               divTese.innerHTML ="Test"
               div1.appendChild(divTese);
            }

    </script>
</html>